/**
 * Board基类
 **/
var Board = View.extend({
    onEnterTransitionDidFinish: function () {
        View.prototype.onEnterTransitionDidFinish.call(this);
        this._onSceneTransitionOver();
        if (window.hasOwnProperty('Timer')) {
            window.Timer.end('Board');
        }
    },
    /**
     * 初始化只调用一次
     * @public
     */
    initBoard: function () {
    },
    /**
     * 刷新数据，外部调用setData
     */
    refreshData: function () {
    },
    /**
     * 刷新界面数据
     * @protected
     */
    _refreshData: function () {
        var self = this;
        if (!self._isInit) {
            //屏幕居中
            if (this._rootNode) {
                this._rootNode.setAnchorPoint(cc.p(0.5, 0.5));
                this._rootNode.move(display.center);
            }
            this.initBoard.apply(this, arguments);
            self._isInit = true;
        }
        self.refreshData.apply(this, arguments);
    },
});